<!--
 * @Author: pengmingming
 * @Date: 2020-12-27 12:16:11
 * @LastEditors: pengmingming
 * @LastEditTime: 2020-12-27 12:22:42
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            position: relative;
            width: 200px;
            height: 100px;
            color: #ffffff;
            text-align: center;
            font-size: 20px;
            margin: 100px;
        }
        .box::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            transform: skew(-45deg);
            background: maroon;
            z-index: -1;
        }
    </style>
</head>
<body>
    <div class="box">click me</div>
</body>
</html>
